package cn.dzhang.spring.boot.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import cn.dzhang.spring.boot.model.Device;
import cn.dzhang.spring.boot.repository.DeviceRepository;
import cn.dzhang.spring.boot.service.DeviceService;
import cn.dzhang.spring.boot.service.JpaAdapter;

@Service
public class DeviceServiceImpl extends JpaAdapter<Device, Integer> implements
		DeviceService {

	@Autowired
	private DeviceRepository repository;
	
	@Override
	protected JpaRepository<Device, Integer> getRepository() {
		return repository;
	}
}
